package com.tangding.configurations;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.tangding.interceptors.ParamInterceptor;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年7月5日_下午9:06:25
 *
 */
@Configuration
public class Interceptors extends WebMvcConfigurerAdapter{
	
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
//		registry.addInterceptor(new AuthInterceptor()).addPathPatterns("/**");
		registry.addInterceptor(new ParamInterceptor()).addPathPatterns("/**");
	}
}
